package com.myteam.fugaocrm.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.myteam.fugaocrm.modle.FgRemindMessage;
import com.myteam.fugaocrm.sqldb.mapper.FgRemindMessageMapper;

@Service
public class RemindMessageServiceImpl implements BaseService {
	
	@Resource protected FgRemindMessageMapper fgRemindMessageMapper;
	
	/**
	 * 查询提醒数量(当前用户的提醒数量)
	 */
	public Integer selectRemindCount(Integer staffId) {
		
		Integer remindCount = fgRemindMessageMapper.selectRemindCount(staffId);
		
		return remindCount == null ? 0 : remindCount;
	}
	
	/**
	 * 查询提醒信息(当前用户的提醒信息)
	 */
	public List<FgRemindMessage> selectRemindList(Integer staffId) {
		
		List<FgRemindMessage> remindList = fgRemindMessageMapper.selectRemindList(staffId);
		
		return remindList;
	}
}
